home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
011
/
selpsc13.arc
/
SELPRTSN.DOC
next >
Wrap
Text File
|
1986-11-16
|
6KB
|
133 lines
Selective *Print* Screen
Version 1.3
Normally, shift PrtSc (print screen) prints out the
entire screen. For me this is always too much. I usually
only need about five to six lines of maybe fifteen to twenty
characters each to be printed. Waiting for the entire screen
to be printed seems like an eternity. One day, I decided to
do something about it. I wrote SPS.COM which replaces the
BIOS print screen procedure.
SPS when executed from DOS displays a brief message,
initializes a pointer, goes into hibernation then gives
control back to DOS. In order to revive, or activate, SPS
after this, a shift key must be pressed along with the PrtSc
(also "*") key which is how you would normally print the
screen.
When SPS is first activated, it sets the cursor to the
upper left-hand corner and displays a "L" in the lower right-
hand corner which stands for "upper Left corner." This means
that SPS is asking you where the print range starts. To tell
it, use the arrow keys to move the cursor to the proper spot.
When there, press return. SPS then displays a "R" for "lower
Right corner" and waits for you tell it where the print range
ends. The upper left corner and the lower right point to a
box range that you want printed. The following is some
sample screen data:
This is some text that could be on your
screEn that you want printed for some
reason. But you don't want all of it
printed, so the BIOS print screen function
cannot be used. But SPS can!
Let's say you pointed to the second "e" of the word "screen"
from the second line (it's capitalized) for the upper left
corner, and the exclamation mark (!) on the fifth line for
the lower right corner of the print range. The following
would be printed by SPS:
En that you want printed
on. But you don't want a
ted, so the BIOS print s
ot be used. But SPS can!
Of course this is a poor example because what is printed
out is meaningless, but there are many times when this is
very useful.
SPS works perfectly from an AUTOEXEC.BAT file. In fact I
suggest you added SPS to yours if you like it. If you do not
want to see its banner message, insert "SPS >NUL" in the
AUTOEXEC file. SPS will be loaded and function as before,
minus the banner message.
(C)Copyright 1985, 86 by Paul Troiano
-1-
Selective *Print* Screen
Version 1.3
When you are pointing, the following keys are active
-------------------------------------------------------------
Left arrow: Moves the cursor one character left on the
current line, if possible.
Right arrow: Moves the cursor one character right on the
current line, if possible.
Up arrow: Moves the cursor one line up, if possible.
Down arrow: Moves the cursor one line down, if possible.
Home: Jumps the cursor to the beginning of the current
line.
End: Jumps the cursor to the end of the current line.
Page Up: Jumps the cursor to the top of the current column.
Page Down: Jumps the cursor to the bottom of the current
column.
CTRL-Right
arrow: Jumps the cursor to the beginning of the next
word.
CTRL-Left
arrow: Jumps the cursor to end beginning of the previous
word.
P: Prints out the entire screen (same as BIOS
routine).
ESCape: Exits SPS without printing anything.
Upon a normal exit, SPS restores the lower right-hand
character and puts the cursor back where it was when SPS was
revived. In an abnormal exit, SPS leaves a character in that
corner to inform you of an error. With version 1.3, there is
only one error condition: a printer error. When this
occurs a "P" will be left in the corner. SPS uses the BIOS
for the printing and if a printer error occurs it takes the
BIOS about 30 seconds to time-out. So in event of a printer
error sit-tight for half a minute.
This is user-supported software. If you find this program
useful send $5, along with any comments or bug reports to:
Paul Troiano
531 Village Road West
Princeton Jct., NJ 08550
Please specify what version you have and where you got it
from (I'm curious).
Changes from version 1.2 to 1.3:
-An illegal range can no longer be specified.
-Block to be printed is highlighted as it is specified.
-Bug when a printer error occurs has been fixed.
(C)Copyright 1985, 86 by Paul Troiano
-2-